import {
	http
}  from "@/common/request.js";
// 发送手机验证码
export function sendPhoneCode(data) {
    return http.request({
      url: "/sendPhoneCode",
      method: "get",
      params:data
    });
  }
  // 换绑手机号
export function changeBindPhone(data) {
    return http.request({
      url: "/changeBindPhone",
      method: "get",
      params:data
    });
  }
// 重置密码
export function updatePwd(data) {
    return http.request({
      url: "/system/user/profile/updatePwd",
      method: 'put',
      params: data
    });
  }
// 修改用户个人信息
export function updateUserProfile(data) {
    return http.request({
      url: '/system/user/profile',
      method: 'put',
      data: data
    })
  }
// 获取学生信息
export function studentInfo(postId) {
    return http.request({
      url: "/student/mine/studentInfo",
      method: "get",
    });
  }
// 查询用户个人信息
export function getUserProfile() {
    return http.request({
      url: '/system/user/profile',
      method: 'get'
    })
  }
// 获取用户信息
export function getInfo() {
    return http.request({
        url: `/getInfo`,
        method: "get",
    });
}
// 获取学分情况
export function getStudentCredit() {
    return http.request({
        url: `/student/selection/credit`,
        method: "get",
    });
}
// 获取学习记录
export function getLearningCourseList(id,data) {
    return http.request({
        url: `/student/courseStudyManager/learningCourseList/${id}`,
        method: "get",
        params:data
    });
}
// 评价课程列表
export function getEvaluateCourseList(id,data) {
    return http.request({
        url: `/student/courseStudyManager/evaluateCourseList/${id}`,
        method: "get",
        params:data
    });
}
// 获取学期列表
export function getSemesterList() {
    return http.request({
        url: `/student/courseStudyManager/semesterList`,
        method: "get"
    });
}
// 评价课程
export function submitEvaluate(data) {
    return http.request({
        url: `/student/courseStudyManager/evaluate`,
        method: "post",
        data:data
    });
}

